package MVC.controller
{
	import MVC.model.ImageChangeModel;
	import MVC.view.UICanvasmediator;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class Startcommand extends SimpleCommand implements ICommand
	{
		public function Startcommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var app:App=notification.getBody() as App;
			facade.registerProxy(new ImageChangeModel(ImageChangeModel.NAME));
			facade.registerMediator(new UICanvasmediator(UICanvasmediator.NAME,app.canvas));
			sendNotification(MyApplication.SATRT_APP_COMPLETE,app.canvas);
		}
	}
}